import request from '@/utils/request'

// 月统计-列表
const monthsStatisticsList = function (params = {}) {
  return request({
    url: '/zy-api/api/reviewStatistics/getmonths',
    method: 'post',
    data: params
  })
}

// 行政机构-选项列表
const adOrgList = function (params = {}) {
  return request({
    url: '/zy-api/api/reviewStatistics/getZone',
    method: 'post',
    data: params
  })
}

// 月统计-添加
const addMonthsStatistics = function (params = {}) {
  return request({
    url: '/zy-api/api/reviewStatistics/insertMonth',
    method: 'post',
    data: params
  })
}

// 月统计-编辑
const editMonthsStatistics = function (params = {}) {
  return request({
    url: '/zy-api/api/reviewStatistics/updateMonth',
    method: 'post',
    data: params
  })
}

// 月统计-删除
const delMonthsStatistics = function (params = {}) {
  return request({
    url: '/zy-api/api/reviewStatistics/deleteMonth',
    method: 'post',
    data: params
  })
}

// 年统计-列表
const yearsStatisticsList = function (params = {}) {
  return request({
    url: '/zy-api/api/reviewStatistics/getyears',
    method: 'post',
    data: params
  })
}

export {
  adOrgList,
  monthsStatisticsList,
  addMonthsStatistics,
  editMonthsStatistics,
  delMonthsStatistics,
  yearsStatisticsList,
}